package com.zygh.lz.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 信息表
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Information对象", description = "信息表")
public class Information implements Serializable {
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发送人警号")
    private String sendWarningSignal;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String msgdigest;

    @ApiModelProperty(value = "时间")
    private String creatTime;

    @ApiModelProperty(value = "已读率")
    @TableField(exist = false)
    private double readRate;

    @ApiModelProperty(value = "发送人")
    @TableField(exist = false)
    private String sendName;

    @ApiModelProperty(value = "接收人")
    @TableField(exist = false)
    private List<InformationUser> acceptName;


    @ApiModelProperty(value = "提醒级别  取值范围staple, importent, urgency,red, yellow, blue" +
            "staple 正常  importent 重要  urgency  紧急  red  红色预警  yellow 黄色预警   blue   蓝色预警")
    @TableField("`msgLevel`")
    private String msgLevel;


}